
<div id="suamenu">
	<div id="tieude_suamenu">
    	<img src="<?php echo base_url();?>image/admin/menu.png" width="35px" height="35px"><label>CẬP NHẬT MENU</label>
    </div>
    <div id="noidung_suamenu">
        <div id="control_noidung_suamenu">
            <div id="control_noidung_suamenu_quayve"><label><a href="<?php echo base_url();?>index.php/admin/admin/qlmenu">Quay về</a></label></div>
            <div id="control_noidung_suamenu_luu"><label><a href="#" onclick="document.forms['suamenu_form_frm'].submit(); return false;">Đồng ý</a></label></div>
        </div>
        <div id="suamenu_form">
					<?php
                        $attributes = array('id'=>'suamenu_form_frm', 'name'=>'suamenu_form_frm');			
                        echo form_open_multipart(base_url().'index.php/admin/admin/update_menu/'.$item2->id_menu,$attributes);
                    ?>                               	
                    	<div class="block_suamenu">
                    		<label>Tên menu</label>
                        	<input class="input_suamenu" type="text" id="admin_tenmenu_suamenu" name="admin_tenmenu_suamenu" value="<?php echo set_value('admin_tenmenu_suamenu',$item2->ten_menu) ?>"/>                                                      
                        </div>
                        <?php echo form_error('admin_tenmenu_suamenu', '<div class="error_validate_suamenu">', '</div>'); ?>
                         
                         <div class="block_suamenu">
                        	<label>Menu cha</label>
                            
                            <select class="input_select_suamenu" name="sltmenucha" id="sltmenucha">
                                <option value=0 <?php if($item2->id_menucha==0) echo "selected" ?>>Không</option>
                                <?php
                                foreach($item1 as $element){?>
                                <option value = "<?php echo $element['id_menu']; ?>" <?php if($element['id_menu'] ==$item2->id_menucha) echo "selected"?>><?php echo $element['ten_menu'] ?></option>;
                                <?php }
                                ?>
                            </select>
                            
                          </div>
                         <?php echo form_error('admin_menucha_suamenu', '<div class="error_validate_suamenu">', '</div>'); ?> 
                         <div class="block_suamenu">
                        	<label>Liên kết</label>
                        	<input class="input_suamenu" type="text" id="admin_lienket_suamenu" name="admin_lienket_suamenu" value="<?php echo set_value('admin_lienket_suamenu',$item2->lien_ket)?>"/>
                         </div>
                         <?php echo form_error('admin_lienket_suamenu', '<div class="error_validate_suamenu">', '</div>'); ?>                          

                         <div class="block_suamenu">
                        	<label>Vị trí thứ</label>
                        	<input class="input_suamenu" type="text" id="admin_vitri_suamenu" name="admin_vitri_suamenu" value="<?php echo set_value('admin_vitri_suamenu',$item2->vi_tri)?>"/>
                         </div>
                         <?php echo form_error('admin_vitri_capnhatthongtincanhan', '<div class="error_validate_suamenu">', '</div>'); ?>                          
                    </form>
                </div> 	
    </div>
</div>